Repository navigation
Host core: one running indicator for every UI - #116
Merged
Merged
Conversation
agorischek
force-pushed
the
comparison-session
branch
from
November 20, 2026 23:45
4db9e6f to
ee1e537
Compare
agorischek
force-pushed
the
running-indicator
branch
2 times, most recently
from
November 20, 2026 23:49
ba07432 to
8e7977c
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The minimum-display timer runs while the chip is hidden during renderer loading, allowing it to appear only after completion and disappear before the visible minimum duration has elapsed.
1 open issue
What changed in this PR
Moves running-indicator timing into host core so default, VS Code, and custom UIs can share the same behavior while preserving the existing VS Code import path.
Changes:
- Exposes the framework-free indicator through the core root and
/runningentry point. - Shares
useRunningIndicatorbetween the default updating chip and VS Code summary bar. - Documents the shared 300 ms delay and 400 ms minimum display time.
| File | Description |
|---|---|
packages/host/vscode-ui/src/summary-bar.tsx |
Replaces the private hook with the core hook. |
packages/host/vscode-ui/src/running.ts |
Re-exports core helpers for compatibility. |
packages/host/vscode-ui/README.md |
Documents the core re-export. |
packages/host/core/src/use-running.ts |
Adds the shared React hook. |
packages/host/core/src/ui/updating-chip.tsx |
Applies shared timing to the updating chip. |
packages/host/core/src/running.ts |
Houses the framework-free indicator and timer types. |
packages/host/core/src/index.ts |
Exports the indicator helpers and hook. |
packages/host/core/package.json |
Adds the /running package entry point. |
docs/guides/host-core.md |
Documents running-job APIs and timing. |
Review effort: Balanced
agorischek
force-pushed
the
running-indicator
branch
from
November 21, 2026 00:43
8e7977c to
70f36c3
Compare
agorischek
force-pushed
the
comparison-session
branch
2 times, most recently
from
November 21, 2026 01:37
5e1c6d8 to
c8b3d8b
Compare
agorischek
force-pushed
the
running-indicator
branch
2 times, most recently
from
November 21, 2026 15:19
8309ff8 to
a24fd47
Compare
agorischek
force-pushed
the
comparison-session
branch
from
November 21, 2026 15:19
c8b3d8b to
0aaa5f1
Compare
agorischek
force-pushed
the
running-indicator
branch
from
November 21, 2026 16:08
a24fd47 to
1b42e21
Compare
agorischek
force-pushed
the
comparison-session
branch
2 times, most recently
from
November 21, 2026 17:39
23f6ab3 to
971f433
Compare
agorischek
force-pushed
the
running-indicator
branch
from
November 21, 2026 17:39
1b42e21 to
38fc8e9
Compare
agorischek
force-pushed
the
comparison-session
branch
from
November 21, 2026 18:28
971f433 to
d3a7b0c
Compare
agorischek
force-pushed
the
running-indicator
branch
2 times, most recently
from
November 21, 2026 19:07
80f5956 to
c9de6b2
Compare
agorischek
force-pushed
the
comparison-session
branch
from
November 21, 2026 19:07
d3a7b0c to
7e5da3c
Compare
The rule for when a running job's indicator shows (after 300 ms, then for at least 400 ms) lived in the VS Code UI, so the default UI's "Updating…" chip showed for every job, however short. The rule is now the core's: `runningIndicator` and its constants at `@githubnext/projections-host/running` (no React or DOM, for the VS Code extension host), and `useRunningIndicator`, which the default UI's chip and the VS Code UI's summary bar both use. The VS Code UI's `./running` entry re-exports it, so the extension is unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The running indicator's minimum started while a loading pane kept the chip hidden, so a chip revealed as the renderer became ready could vanish at once. The latch now lives only while no pane is loading. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
agorischek
force-pushed
the
running-indicator
branch
from
November 21, 2026 20:34
c9de6b2 to
c26262c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Stacked on #114. Part of item G7 of the headless-host plan ("stranded helpers").
Why
runningIndicatordecides when a running job's indicator shows: after 300 ms, so short jobs never flash it, and then for at least 400 ms. It is framework-free and timer-injectable, but it lived in the VS Code UI (vscode-ui/src/running.ts). So the default UI's "Updating…" chip (#65) showed for every job, however short. A custom UI had to copy the latch or go without.What changed
packages/host/core/src/running.ts(moved withgit mv):runningIndicator,runningText,runningDelayMs,runningMinimumMs,RunningandRunningTimers. It has no React or DOM, so it gets its own entry,@githubnext/projections-host/running, and the root re-exports it too.useRunningIndicator(running)in the core root: the hook that was the VS Code summary bar's privateuseShownRunning.UpdatingChipshows the job only throughuseRunningIndicator, so it follows the same delay and minimum.src/running.tsre-exports the core's.@githubnext/projections-host-vscode/runningand the extension are unchanged.Behaviour change
The default UI's "Updating…" now appears only after a job has run for 300 ms, and stays at least 400 ms, as the VS Code UI's spinner and status bar already did.
Docs and checks
docs/guides/host-core.mdgains "Running jobs".tools check --fast: pass.tscfor core and the VS Code UI: pass.node --test packages/integrations/vscode/test/status-bar.test.mjs: 11/11. It drivesrunningIndicatorthrough the re-export.